<template>
    <div class="execution">
         <avue-form :option="detailOption" v-model="form" @submit="handleSubmit">
        </avue-form>
    </div>
</template>

<script>
    import {fetchDetail} from '@/api/data/user'
    import {detailOption} from '@/const/crud/data/user'

    export default {
        name: 'iecguserdetail',
        data() {
            return {
                form: {},
                detailOption: detailOption
            }
        },
        created() {
            this.getData(this.$route.query.id)
        },
        methods: {
            getData(id) {
                fetchDetail(id).then(res => {
                    console.log(res.data.data)
                    this.form = res.data.data
                })
            },
            handleSubmit() {
                console.log(this.form)
            }
        }
    }
</script>

<style lang="scss" scoped>
</style>
